<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--这是帖子的模板-->
<html>
	<head>
		<title>
			<#list articles as article>
				<#if article_index==0>
					${article.articleTitle}
				</#if>
			</#list>
		</title>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<script type="text/javascript" src="../ckeditor/ckeditor.js">
		</script>
		<script type="text/javascript" src="../js/jquery-1.6.1.js">
		</script>
		<script type="text/javascript" src="../js/uploadfile.js">
		</script>
		<script type="text/javascript" src="../js/formattext.js">
		</script>
		<link href="../css/forum.css" rel="stylesheet" type="text/css" media="screen"
		/>
	</head>
	<body>
		<div id="wrapper">
			<!-- start header -->
			<div id="header-wrapper">
				<div id="header">
					<div id="logo">
						<h1>
							<a href="#">
								<span>
									${article.themeTitle} Forum
								</span>
							</a>
						</h1>
						<p>
							This is ${article.themeTitle} Forum
						</p>
					</div>
				</div>
			</div>
			<div id="menu-wrapper">
				<div id="menu">
					<ul id="main">
						<li class="current_page_item">
							<a href="#">
								Homepage
							</a>
						</li>
						<li>
							<a href="#">
								Forum
							</a>
						</li>
						<li>
							<a href="#">
								Contact Us
							</a>
						</li>
					</ul>
				</div>
			</div>
			<!-- end header -->
			<!-- start page -->
			<div id="page">
				<!-- start content -->
				<div id="content">
					<table>
						<tr>
							<#if (articlePage>1)>
								<#else>
									<div id="articleArea">
										<td>
											<#list articles as article>
												articleTitle:${article.articleTitle}
												<ul>
													<li>
														articleLord
													</li>
													<li>
														authorName:${article.authorName}
													</li>
													<li>
														submitTime:${article.inTime}
													</li>
												</ul>
										</td>
										<td>
											${article.articleContent}
											<br>
										</td>
										</#list>
					</table>
					</tr>
					</div>
					</#if>
					<div id="commentArea">
						<#list comments as comment>
							commentFloor:${comment.commentFloor}
							<br>
							authorName:${comment.authorName}
							<br>
							comContent:${comment.comContent}
							<br>
							inTime:${comment.inTime}
							<br>
							<br>
						</#list>
						<br>
					</div>
					<br>
					<#if (articlePage<=1)>
						<#else>
							<a href="readArticleAction.action?articlePage=1&article.themeTitle=${article.themeTitle}&article.articleId=${article.articleId}">
								首页
							</a>
							<a href="readArticleAction.action?articlePage=${articlePage-1}&article.themeTitle=${article.themeTitle}&article.articleId=${article.articleId}">
								上一页
							</a>
					</#if>
					<#if (articlePage>=lastPage)>
						<#else>
							<a href="readArticleAction.action?articlePage=${articlePage+1}&article.themeTitle=${article.themeTitle}&article.articleId=${article.articleId}">
								下一页
							</a>
							<a href="readArticleAction.action?articlePage=${lastPage}&article.themeTitle=${article.themeTitle}&article.articleId=${article.articleId}">
								尾页
							</a>
					</#if>
					<br>
					<br>
					<br>
					<div id="submitCommentArea">
						发表评论
						<br>
						<form method="post" action="newCommentAction.action" onsubmit="return formatText(commentContentTextArea,ckeditor)">
							<input type="text" name=comment.themeTitle style="visibility: hidden"
							value=${article.themeTitle}>
							<br>
							<input type="text" name=comment.articleId style="visibility: hidden" value=${article.articleId}>
							<br>
							commentContent：
							<textarea id="ckeditor" class="ckeditor" type="text" name="comment.comContent "
							cols="50 " rows="8 " id="commentContentTextArea">
							</textarea>
							<br>
							<input type="submit" value="submit">
						</form>
					</div>
					<div id="attachment_area">
					</div>
					<form action="uploadFileAction.action" method="post" enctype="multipart/form-data"
					target="uploadFrame" id="uploadFileForm">
						<input type="file" name="upload" id="filePath">
						<br>
						<input value="upload" type="submit" onclick="uploadFile()" id="uploadButton">
					</form>
					<iframe name="uploadFrame" style="visibility: hidden">
					</iframe>
	</body>

</html>